package com.mdinfo.gw.door.param

import javax.validation.constraints.Min
import javax.validation.constraints.NotNull

/**
 * Created by Administrator on 2018/1/9.
 */
class DoorAccessAddParam{

    @NotNull(message = "不能为空")
    var name: String? = null

    @NotNull(message = "不能为空")
    var devId: String? = null

    @NotNull(message = "不能为空")
    @Min(value = 1, message = "最小值为1")
    var deptId: Int? = null

    @NotNull(message = "不能为空")
    var lng: Double? = null

    @NotNull(message = "不能为空")
    var lat: Double? = null

    @NotNull(message = "不能为空")
    var host:String? = null

    @NotNull(message = "不能为空")
    var port:Int? = null

    @NotNull(message = "不能为空")
    var devBrand:String? = null

    @NotNull(message = "不能为空")
    var devModel:String? = null

    @NotNull(message = "不能为空")
    var devVersion:String? = null
}

class DoorAccessListQueryParam{

    @NotNull(message = "不能为空")
    var start:Int? = null

    @NotNull(message = "不能为空")
    var num:Int? = null

    var key:String? = null

    var deptId:Int? = null
}

class DoorAccessModifyParam{

    @NotNull(message = "不能为空")
    var doorAccessId:Int? = null

    @NotNull(message = "不能为空")
    var name: String? = null

    @NotNull(message = "不能为空")
    var devId: String? = null

    @NotNull(message = "不能为空")
    @Min(value = 1, message = "最小值为1")
    var deptId: Int? = null

    @NotNull(message = "不能为空")
    var lng: Double? = null

    @NotNull(message = "不能为空")
    var lat: Double? = null

    @NotNull(message = "不能为空")
    var host:String? = null

    @NotNull(message = "不能为空")
    var port:Int? = null

    @NotNull(message = "不能为空")
    var devBrand:String? = null

    @NotNull(message = "不能为空")
    var devModel:String? = null

    @NotNull(message = "不能为空")
    var devVersion:String? = null
}

class DoorAccessToDelParam{

    @NotNull(message = "不能为空")
    var doorAccessId:Int? = null
}

class DoorAccessListByDeptParam{

    @NotNull(message = "不能为空")
    var deptId:Int? = null
}